//
//  customCell.m
//  UICollectionVIewDemo
//
//  Created by 曾墨 on 16/10/25.
//  Copyright © 2016年 YuanJiang. All rights reserved.
//

#import "customCell.h"

@implementation customCell

-(instancetype) initWithFrame:(CGRect)frame
{
    self= [super initWithFrame:frame];
    if (self) {
        self.titleLabel= [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 30)];
        self.titleLabel.backgroundColor= [UIColor blueColor];
        self.titleLabel.textColor = [UIColor whiteColor];
        self.titleLabel.adjustsFontSizeToFitWidth= YES;
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.titleLabel];
    }
    return self;
}

@end























